From f4d8a26972728891de8bde4eeb94c80f027ce2d2 Mon Sep 17 00:00:00 2001
From: diogo464 <diogo464@d464.sh>
Date: Mon, 11 Aug 2025 16:04:32 +0100
Subject: basic v0 ui working

---
 frontend/app/drive/[...path]/page.tsx | 58 -----------------------------------
 1 file changed, 58 deletions(-)
 delete mode 100644 frontend/app/drive/[...path]/page.tsx

(limited to 'frontend/app/drive/[...path]/page.tsx')

diff --git a/frontend/app/drive/[...path]/page.tsx b/frontend/app/drive/[...path]/page.tsx
deleted file mode 100644
index be11253..0000000
--- a/frontend/app/drive/[...path]/page.tsx
+++ /dev/null
@@ -1,58 +0,0 @@
-import { Drive_ls } from "@/lib/drive_server"
-import { Drive_parent } from "@/lib/drive_shared"
-import Link from "next/link"
-import { Auth_get_user, Auth_user_can_upload } from "@/lib/auth";
-import FileUpload from "@/components/FileUpload"
-import FileTable from "@/components/FileTable"
-
-interface DrivePageProps {
-  params: Promise<{
-    path: string[]
-  }>
-}
-
-export default async function DrivePage({ params }: DrivePageProps) {
-  // Await params as required by Next.js 15
-  const { path } = await params
-
-  const user = await Auth_get_user();
-
-  // Construct the full path from params
-  const fullPath = path ? `/${path.join('/')}` : ""
-
-  const entries = await Drive_ls(fullPath, false)
-
-  // Check if we have a parent directory
-  const parentDir = Drive_parent(fullPath)
-  const parentPath = path && path.length > 1
-    ? `/drive/${path.slice(0, -1).join('/')}`
-    : path && path.length === 1
-      ? '/drive'
-      : null
-
-  const showParent = parentDir !== null && parentPath !== null
-
-  return (
-    <div className="min-h-screen bg-background">
-      <div className="container mx-auto p-4">
-        <Link href="/drive" className="inline-block mb-6">
-          <h1 className="text-2xl font-bold text-foreground hover:text-blue-600 dark:hover:text-blue-400 transition-colors cursor-pointer">FCTDrive</h1>
-        </Link>
-
-        <FileTable 
-          entries={entries}
-          currentPath={fullPath}
-          showParent={showParent}
-          parentPath={parentPath || undefined}
-        />
-        
-        {/* File Upload Component */}
-        {Auth_user_can_upload(user) && (
-          <FileUpload 
-            targetPath={fullPath}
-          />
-        )}
-      </div>
-    </div>
-  )
-}
-- 
cgit 

